package com.java.yz.day04.ketang;

public class ArrayDemo2 {
    public static void main(String[] args) {
        int[] arry1=new int[3];
        System.out.println(arry1);
        System.out.println(arry1[0]);
        System.out.println(arry1[1]);
        System.out.println(arry1[2]);

        arry1[0]=100;  //赋值成功，但是他的地址值没有变化
        arry1[1]=200;
        arry1[2]=300;
        System.out.println(arry1);
        System.out.println(arry1[0]);
        System.out.println(arry1[1]);
        System.out.println(arry1[2]);
    }
}
